let data=[
  {
    id: "1",
    name: "朱浩然",
    age: 15,
    innerNumber: "17375289138",
  },
  {
    id: "2",
    name: "朱浩然1",
    age: 15,
    innerNumber: "17375289134",
  },
  {
    id: "3",
    name: "朱浩然2",
    age: 15,
    innerNumber: "17375289131",
  },
  {
    id: "4",
    name: "朱浩然3",
    age: 15,
    innerNumber: "17375289138",
  },
];


function findFirstDuplicate(data) {
  const seenNumbers = {}; // 存储已出现过的号码和名字

  for (const item of data) {
    const { name, innerNumber } = item;

    if (seenNumbers[innerNumber]) {
      // 如果号码已存在，则提示并直接返回
      console.log(`号码 ${innerNumber} 重复：${seenNumbers[innerNumber]} 和 ${name}`);
      return; // 找到第一对重复后立即结束
    } else {
      seenNumbers[innerNumber] = name; // 记录号码和名字
    }
  }

  console.log("没有重复的号码");
}

findFirstDuplicate(data);